﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TByte.XnaHelper.GameObjects;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using TByte.XnaHelper.Input;
using TByte.XnaHelper;
using System.IO;

namespace TByte.XnaHelper.GameObjects
{
    public class MousePointer : GameObject
    {
        #region Fields
        Texture2D sprite;
        #endregion

        #region Methods
        public override void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(sprite, Position, Color.White);
            base.Draw(spriteBatch);
        }
        public override void Update()
        {
            RelativePosition = new Vector2(InputSystem.MouseLocation.X, InputSystem.MouseLocation.Y);
            base.Update();
        }
        #endregion

        #region Constructors
        public MousePointer(string spriteName)
            : base("MousePointer")
        {
            this.sprite = Assets.Texture(spriteName);
        }
        #endregion

        #region Properties
        #endregion
    }
}
